<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.page.manage_page}</h3>
        <ul class="tab1">
            <li class="current"><a href="__URL__/pageList"><span>{$Think.lang.page.all_page}</span></a></li>
            <li><a href="__URL__/addPage"><span>{$Think.lang.page.add_page}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.page.page_tips}</p>

    <form name="cpform" method="post" action="__URL__/managePage" id="cpform">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 fixpadding">
        <tr>
            <th>{$Think.lang.id}</th>
            <th>{$Think.lang.page.page_title}</th>
            <th>{$Think.lang.create_time}</th>
            <th width="10%">{$Think.lang.actions}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="pageList" id="vo">
        <tr class="item">
            <td>{$vo.page_id}</td>
            <td><a href="{$vo.page_id|format_page_url=$vo['title']}" target="_blank">{$vo.title}</a></td>
            <td>{$vo.create_time|format_date}</td>
            <td><a class="act" href="__URL__/editPage/page_id/{$vo.page_id}">{$Think.lang.edit}</a></td>
            <td><input type="checkbox" class="checkbox" name="mods[]" value="{$vo.page_id}" /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="4">
                <div class="cuspages left"><div class="pages">{$pagination}</div></div>
                <div class="fixsel right"><input type="submit" class="btn" name="action[delete]" value="{$Think.lang.delete_selected}" /></div>
            </td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'mods')" /><label for="chkall">{$Think.lang.check_all}</label></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
